<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>hello</title>
</head>
<body>

<div id="app">
    <button @click="changColor('red')">红色</button>
    <button @click="changColor('blue')">蓝色</button>

    <div v-bind:class="abc">我是div</div>
    <div :class="isActive">我是div</div>
    <font :color="cl">颜色</font>
</div>
<script src="./node_modules/vue/dist/vue.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el:"#app",
        data:{
            isActive:['active','hasError'],
            cl:"pink"
        },methods:{
            changColor(clo){
                this.cl = clo;
            }
        }
    })
</script>


</body>
</html>